package week15;

public class PingfangThread extends Thread{
    private int num;

    public PingfangThread() {
    }

    public PingfangThread(int num) {
        this.num = num;
    }

    @Override
    public void run() {

         int res=num*num;
        System.out.println(num+"的平方是"+res);
    }

}
